package com.suneast.suneaststore.modules.homepage.event;

import android.support.annotation.IntDef;

import com.suneast.suneaststore.modules.common.Flag;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class RequestResult {
    public static final int HOME_PAGE = 0;
    public static final int BRAND_LIST = 1;
    public static final int GOODS_LIST = 2;

    @IntDef({HOME_PAGE, BRAND_LIST,GOODS_LIST})
    @Retention(RetentionPolicy.SOURCE)
    public @interface TYPE {
    }

    private @TYPE int type;
    private @Flag.Result
    int result;

    public RequestResult(@TYPE int type,@Flag.Result int result) {
        this.type = type;
        this.result = result;
    }

    public int getResult() {
        return result;
    }

    public int getType() {
        return type;
    }
}
